from rest_framework.viewsets import ModelViewSet
from goods.models import Brand
from meiduo_admin.paginations import MyPage
from meiduo_admin.serializers.goods_serializers import *


class GoodsBrandsView(ModelViewSet):
    queryset = Brand.objects.all()
    serializer_class = GoodsBrandsSerializer
    pagination_class = MyPage